package com.hzlj.position.locate.common.dto.messageToday;

import com.hzlj.common.message.common.dto.message.MessageNoticeUserDTO;

import java.util.ArrayList;

public class MessageTodayNoticeUsersDTO extends ArrayList<MessageNoticeUserDTO> {
    public static MessageTodayNoticeUsersDTO of(MessageNoticeUserDTO user) {
        MessageTodayNoticeUsersDTO users = new MessageTodayNoticeUsersDTO();
        users.add(user);
        return users;
    }

    public static MessageTodayNoticeUsersDTO of() {
        return new MessageTodayNoticeUsersDTO();
    }

    public MessageTodayNoticeUsersDTO addUser(MessageNoticeUserDTO user) {
        this.add(user);
        return this;
    }

}
